package com.wanxi.abstrct;

public class Test {
    public static void main(String[] args) {
        Animal cat = new Cat();
        cat.eat();
        Animal dog = new Dog();
        dog.eat();
//        Animal aa = new Animal() {
//            @Override
//            public void eat() {
//
//            }
//        };
    }
}
